package com.smartleanx.module.hrm.elecCorp;

import com.alibaba.fastjson2.JSONObject;
import com.smartleanx.framework.common.pojo.CommonResult;
import com.smartleanx.module.hrm.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 用户")
public interface CropApi {

    String PREFIX = ApiConstants.PREFIX + "/crop";
    @GetMapping(PREFIX + "/list")
    @Operation(summary = "获取公司下拉")
    CommonResult<List<JSONObject>> corpBySelect();
}
